﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace SaleSoft.Helper {
    public static class FileHelper {
        /// <summary>
        /// Xóa file theo đường link xác định
        /// </summary>
        /// <param name="filePath">Đường dẫn file cần xóa</param>
        public static void DeleteFile ( string filePath ) {
            if (System.IO.File.Exists(filePath)) {
                try {
                    System.IO.File.Delete(filePath);
                } catch {
                }
            }
        }
    }
}